package com.ruoyi.system.service.impl;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper;
import com.ruoyi.system.domain.SetModel;
import com.ruoyi.system.domain.base.BaseBom;
import com.ruoyi.system.domain.base.BaseBomInfo;
import com.ruoyi.system.domain.client.MesClientPages;
import com.ruoyi.system.domain.client.MesClientPagesRelation;
import com.ruoyi.system.mapper.*;
import com.ruoyi.system.service.IMesClientPagesService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;


/**
 * 客户端页面Service业务层处理
 *
 * @author ruoyi
 * @date 2023-02-20
 */
@Service
public class MesClientPagesServiceImpl extends ServiceImpl<MesClientPagesMapper, MesClientPages> implements IMesClientPagesService
{


    @Autowired
    private MesClientPagesMapper mesClientPagesMapper;


    @Override
    public List<MesClientPages> selectMesClientPageslList(MesClientPages mesClientPages) {
        QueryWrapper<MesClientPages> sectionQueryWrapper = new QueryWrapper<>();
        if(StrUtil.isNotEmpty(mesClientPages.getStatus())){
            sectionQueryWrapper.lambda().eq(MesClientPages::getStatus,mesClientPages.getStatus());
        }

       return mesClientPagesMapper.selectList(sectionQueryWrapper);
        
    }
}
